package cn.iocoder.yudao.module.resource.dal.mysql.advertiser;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.resource.dal.dataobject.advertiser.ResourceAdvertiserDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 广告商 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface ResourceAdvertiserMapper extends BaseMapperX<ResourceAdvertiserDO> {

    default ResourceAdvertiserDO selectByUserId(Long userId) {
        return selectOne(ResourceAdvertiserDO::getUserId, userId);
    }

}
